package com.example.demo.Service.Impl;

import com.example.demo.Dao.IllegalActionDao;
import com.example.demo.Entity.IllegalAction;
import com.example.demo.Service.UserActionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserActionServiceImpl implements UserActionService {
    @Autowired
    private IllegalActionDao illegalActionDao;

    @Override
    public List<IllegalAction> selectAllIllegalAction() {
        return illegalActionDao.selectAll();
    }

    @Override
    public List<IllegalAction> selectIllegalByUserID(String uid) {
        return illegalActionDao.selectByUserID(uid);
    }

    @Override
    public void addNewAction(IllegalAction action) {
        illegalActionDao.addNewAction(action);
    }
}
